package city.spring.modules.personnel.service;

import city.spring.modules.personnel.entity.EmployeeJobEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Service：职务
 *
 * @author pxm
 * @date 2020-06-28 17:17:30
 */
public interface EmployeeJobService extends IService<EmployeeJobEntity> {
    String CACHE_NAME = "employee_job";

    /**
     * 业务处理：保存一个 <strong>职务</strong>
     *
     * @param entity 职务
     */
    void saveEmployeeJob(EmployeeJobEntity entity);

    /**
     * 业务处理：修改一个 <strong>职务</strong>
     *
     * @param entity 职务
     */
    void updateEmployeeJob(EmployeeJobEntity entity);

    /**
     * 业务处理：删除一个 <strong>职务</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteEmployeeJob(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>职务</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteEmployeeJob(List<String> primaryKeys);
}